import service from '../request'

// 获取多边形
export function getPolygon() {
  return service({
    url: '/Draw/DrawPolygon/geojson',
    method: 'get',
  })
}

// 新增多边形
export function postAddPolygon(params) {
  return service({
    url: '/Draw/DrawPolygon',
    method: 'post',
    data: params,
  })
}

export function putPolygon(params) {
  return service({
    url: `/Draw/DrawPolygon`,
    method: 'put',
    data: params,
  })
}
